package view.GUI.actions;

import controller.commands.OneOnOneTranslationCommand;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import model.graphic.GraphicModel;
import view.GUI.graphic.GraphicView;

/**
 *
 * @author Ben
 */
public class OneOnOneTranslationAction  extends AbstractAction {

    private GraphicView gview;
    private GraphicModel gmodel;

    public OneOnOneTranslationAction(GraphicView gview, GraphicModel gmodel) {
        this.gview = gview;
        this.gmodel = gmodel;
    }

    public void actionPerformed(ActionEvent e) {
        gview.notifyObservers(new OneOnOneTranslationCommand(gview, gmodel));
    }
}
